﻿using System;
using System.Windows.Forms;

namespace SG.Productivity.DesktopControlPanel.Controls
{
    static class DataGridCellEx
    {
        public static DataGridCell ReduceRow(this DataGridCell cell)
        {
            return new DataGridCell(Math.Max(0, cell.RowNumber - 1), cell.ColumnNumber);
        }

        public static DataGridCell IncreaseRow(this DataGridCell cell)
        {
            return new DataGridCell(cell.RowNumber + 1, cell.ColumnNumber);
        }
    }
}